import request from '@/utils/request'

export function add(data) {
    return request({
      url: '/product/add',
      method: 'post',
      data
    })
  }

export function all(){
  return request({
      url: '/area/all',
      method: 'post',
  })
}


export function selectAll(){
  return request({
      url: '/product/all',
      method: 'get',
  })
}

export function page(data){
  return request({
      url: '/product/page',
      method: 'post',
      data
  })
}


export function del(data){
  return request({
      url: '/product/delete',
      method: 'post',
      data

  })
}